#simmple auto re-join plugin

irc = None

def init(bot):
    global irc
    irc = bot
    irc.cmd.events['KICK'].subscribe(handle_kick)

def handle_kick(sender, args):
    global irc

    if args[3] == irc.nickname:
        irc.joinc(args[2])


